<?php

namespace app\admin\model\tongcheng;

use addons\tongcheng\model\BaseModel;


class DeliveryOrderInfoModel extends BaseModel
{


    // 表名
    protected $name = 'tongcheng_delivery_order_info';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'integer';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];


    public function order()
    {
        return $this->belongsTo('app\admin\model\tongcheng\delivery\Order', 'order_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }
}
